-- GENERATED SPELL FOR [Enslaved Soul] --


function spell0_23469(pUnit, Event) --@Soul Release,Self--
pUnit:FullCastSpellOnTarget(41542,pUnit)
pUnit:RegisterEvent('Sorts_23469', 522, 1)
end

function Sorts_23469(pUnit, Event)
local choix_sorts_23469 = math.random(0, 0)
if choix_sorts_23469 == 0 then
pUnit:RegisterEvent('spell0_23469', 1, 1)
end
end

function mob23469_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23469', math.random(1500, 3000), 1)
end

function mob23469_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23469_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23469_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23469, 1, 'mob23469_Action')
RegisterUnitEvent(23469, 2, 'mob23469_Leave')
RegisterUnitEvent(23469, 3, 'mob23469_Kill')
RegisterUnitEvent(23469, 4, 'mob23469_Die')
